import request from '@/utils/request'

export function addParkingSpaceApi(data) {
  return request({
    url: '/parking-space',
    method: 'post',
    data
  })
}

export function deleteParkingSpaceApi(params) {
  return request({
    url: '/parking-space',
    method: 'delete',
    params
  })
}

export function updateParkingSpaceApi(data) {
  return request({
    url: '/parking-space',
    method: 'put',
    data
  })
}

export function getParkingSpaceApi(params) {
  return request({
    url: '/parking-space',
    method: 'get',
    params
  })
}
